<?php
/*
 * @copyright        [YouNet_COPYRIGHT]
 * @author           Palxi
 * @package          Module_Friend
 * @version          3.01
 *
 */
defined('PHPFOX') or exit('NO DICE!');
?>
{if Phpfox::isUser()}

 
		<div class="bar-button-event">
			<div id="event-bt" class="left_navigator">
				<div class="bar-button-arrow"></div>
				<ul>
					{foreach from=$aListEvents item=ListEvents}
					<li>
						<a href="{url link='event'}{$ListEvents.event_id}/" title="{$ListEvents.title}">{$ListEvents.title|shorten:20|split:20}</a>
						<span>{$ListEvents.total_like}</span>
						<div class="clear"></div>
					</li>
					{/foreach}
					
					<li>
						<a class="pages_add_more" href="#" onclick="tb_show('{phrase var='event.create_new_event'}',$.ajaxBox('event.createEvent'));return false;">+ {phrase var='core.new_event'}</a>
						<a class="pages_view_all" href="{url link='event' view='my'}" onclick="tb_show('All Events',$.ajaxBox('event.viewAll','view=my'));return false;">{phrase var='core.view_all'}</a>
						<div class="clear"></div>
					</li>
				</ul>
			</div>
		</div>
		<div class="bar-button-community">
			<div id="communities-bt" class="left_navigator">
				<div class="bar-button-arrow"></div>
				<ul>
					{foreach from=$aListPages item=ListPages}
					<li>
						<a href="{url link='pages'}{$ListPages.page_id}/" title="{$ListPages.title}">{$ListPages.title|shorten:20|split:20}</a>
						<span>{$ListPages.total_like}</span>
						<div class="clear"></div>
					</li>
					{/foreach}
					<li>
						<a class="pages_add_more" href="#" onclick="tb_show('{phrase var='core.create_new_community'}',$.ajaxBox('pages.createPage','is_group=0'));return false;">+ {phrase var='core.create_more'}</a>
						<a class="pages_view_all" href="{url link='pages' view='my'}" onclick="tb_show('All communities',$.ajaxBox('pages.viewAll','view=my'));return false;">{phrase var='core.view_all'}</a>
						<div class="clear"></div>
					</li>
				</ul>
			</div>
		</div>
        <div class="bar-button-groups">
			<div id="group-bt" class="left_navigator">
				<div class="bar-button-arrow"></div>
				<ul>
					{foreach from=$aListGroup item=ListGroup}
					<li>
						<a href="{url link='pages'}{$ListGroup.page_id}/" title="{$ListGroup.title}">{$ListGroup.title|split:25}</a>
						<span>{$ListGroup.total_like}</span>
						<div class="clear"></div>
					</li>
					{/foreach}
					<li>
						<a class="pages_add_more" onclick="tb_show('{phrase var='core.new_group'}',$.ajaxBox('pages.createPage','is_group=1'));return false;" href="#" >+ {phrase var='core.new_group'}</a>
						<a class="pages_view_all" href="{url link='pages' view='my' type='group'}" onclick="tb_show('All groups',$.ajaxBox('pages.viewAll','view=my&type=group'));return false;" >{phrase var='core.view_all'}</a>
						<div class="clear"></div>
					</li>
				</ul>
			</div>
        </div>



{/if}